<?php
//app/Model/User.php

App::uses('AuthComponent', 'Controller/Component');

class UsersOccurrences extends AppModel
{
    public $name = 'UsersOccurrences';
    var $useTable = 'users_occurrences';
	
    var $belongsTo = array(
        'User' => array(
            'recursive' => 2,
            'className' => 'User',
            'foreignKey' => 'user_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         ),
        'Occurrence' => array(
            'recursive' => 2,
            'className' => 'Occurrence',
            'foreignKey' => 'occurrence_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         )
    );
    
}
?>